package com.ohs.dal.dao;

import java.util.Date;
import java.util.List;

import com.ohs.dal.model.Booking;

public interface BookingDAO extends AbstractDAO<Booking> {
	public void saveOrUpdate(Booking entity);
	
	public Booking get(long id);
	
	public List<Booking> findByRoom(long roomId);
	
	public List<Booking> findByDate(Date bookingDate);
	
	public int countBookingWithin(long roomId, Date fromDate, Date toDate);
	
	public List<Booking> getBookingWithin(long roomId, Date fromDate, Date toDate);
}
